<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Header &lt;boost/test/tools/floating_point_comparison.hpp&gt;</title>
<link rel="stylesheet" href="../../../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../../../index.html" title="Boost.Test">
<link rel="up" href="../../../../boost_test/reference.html" title="Reference">
<link rel="prev" href="../../../../boost/test_tools/tolerance.html" title="Function tolerance">
<link rel="next" href="../../../../boost/math/fpc/close_at_tolerance.html" title="Class template close_at_tolerance">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../../boost.png"></td>
<td align="center"><a href="../../../../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../../boost/test_tools/tolerance.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../../boost_test/reference.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../../boost/math/fpc/close_at_tolerance.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h4 class="title">
<a name="header.boost.test.tools.floating_point_comparison_hpp"></a>Header &lt;<a href="../../../../../../../../boost/test/tools/floating_point_comparison.hpp" target="_top">boost/test/tools/floating_point_comparison.hpp</a>&gt;</h4></div></div></div>
<p>algorithms for comparing floating point values </p>
<pre class="synopsis"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
  <span class="keyword">namespace</span> <span class="identifier">math</span> <span class="special">{</span>
    <span class="keyword">namespace</span> <span class="identifier">fpc</span> <span class="special">{</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> FPT<span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="../../../../boost/math/fpc/close_at_tolerance.html" title="Class template close_at_tolerance">close_at_tolerance</a><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="../../../../boost/math/fpc/is_abstr_idm44970733898992.html" title="Class template is_abstract_class_or_function">is_abstract_class_or_function</a><span class="special">;</span>

      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> FPT<span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/math/fpc/percent_tolerance_t.html" title="Struct template percent_tolerance_t">percent_tolerance_t</a><span class="special">;</span>

      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> FPT<span class="special">&gt;</span> <span class="keyword">class</span> <a class="link" href="../../../../boost/math/fpc/small_with_tolerance.html" title="Class template small_with_tolerance">small_with_tolerance</a><span class="special">;</span>

      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/math/fpc/tolerance_based.html" title="Struct template tolerance_based">tolerance_based</a><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">,</span> <span class="keyword">bool</span> enabled<span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/math/fpc/tolerance_based_delegate.html" title="Struct template tolerance_based_delegate">tolerance_based_delegate</a><span class="special">;</span>

      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/math/fpc/toleranc_idm44970733872944.html" title="Struct template tolerance_based_delegate&lt;T, false&gt;">tolerance_based_delegate</a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">,</span> <span class="keyword">false</span><span class="special">&gt;</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T<span class="special">&gt;</span> <span class="keyword">struct</span> <a class="link" href="../../../../boost/math/fpc/toleranc_idm44970733870416.html" title="Struct template tolerance_based_delegate&lt;T, true&gt;">tolerance_based_delegate</a><span class="special">&lt;</span><span class="identifier">T</span><span class="special">,</span> <span class="keyword">true</span><span class="special">&gt;</span><span class="special">;</span>

      <span class="comment">// Method for comparing floating point numbers. </span>
      <span class="keyword">enum</span> <a name="boost.math.fpc.strength"></a>strength <span class="special">{</span> FPC_STRONG, FPC_WEAK <span class="special">}</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> FPT<span class="special">&gt;</span> 
        <span class="identifier">std</span><span class="special">::</span><span class="identifier">ostream</span> <span class="special">&amp;</span> 
        <a name="boost.math.fpc.operator_idm44970733865440"></a><span class="keyword">operator</span><span class="special">&lt;&lt;</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">ostream</span> <span class="special">&amp;</span> out<span class="special">,</span> <a class="link" href="../../../../boost/math/fpc/percent_tolerance_t.html" title="Struct template percent_tolerance_t">percent_tolerance_t</a><span class="special">&lt;</span> <span class="identifier">FPT</span> <span class="special">&gt;</span> t<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> FPT<span class="special">&gt;</span> 
        <a class="link" href="../../../../boost/math/fpc/percent_tolerance_t.html" title="Struct template percent_tolerance_t">percent_tolerance_t</a><span class="special">&lt;</span> <span class="identifier">FPT</span> <span class="special">&gt;</span> <a name="boost.math.fpc.percent_tolerance"></a><span class="identifier">percent_tolerance</span><span class="special">(</span><span class="identifier">FPT</span> v<span class="special">)</span><span class="special">;</span>
      <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> FPT<span class="special">&gt;</span> <span class="keyword">bool</span> <a name="boost.math.fpc.is_small"></a><span class="identifier">is_small</span><span class="special">(</span><span class="identifier">FPT</span> fpv<span class="special">,</span> <span class="identifier">FPT</span> tolerance<span class="special">)</span><span class="special">;</span>
    <span class="special">}</span>
  <span class="special">}</span>
<span class="special">}</span></pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2001-2020 Boost.Test contributors<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../../boost/test_tools/tolerance.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../../boost_test/reference.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../../../boost/math/fpc/close_at_tolerance.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
